//
//  StellGoodsListViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/11.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "StellGoodsListViewController.h"
#import "StellGoodsListViewModel.h"
#import "GoodsInformationViewController.h"

@interface StellGoodsListViewController ()<SelectStellGoodsDelegate>
@property(nonatomic,strong)StellGoodsListViewModel * stellGoodsViewModel;
@end

@implementation StellGoodsListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"三级螺纹钢";
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithHexString:@"#F2F2F2"];
    self.stellGoodsViewModel = [[StellGoodsListViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    self.stellGoodsViewModel.delegate = self;
}

#pragma mark -- SelectStellGoodsDelegate
-(void)stellChangeDidSelectRowAtIndexPath:(NSIndexPath *)stell_indexPath{
    GoodsInformationViewController * goodsInforVC = [GoodsInformationViewController new];
    goodsInforVC.is_GoodsPush = YES;
    [self.navigationController pushViewController:goodsInforVC animated:YES];
}

@end
